package com.yami.shop.bean.model;


import com.alibaba.fastjson.JSON;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author DELL
 */
@Data
public class UserRecommendation {
    private String userId;
    private String recommendedItems;
    private LocalDateTime updateTime;
    public List<Long> getRecommendedItemList() {
        return JSON.parseArray(recommendedItems, Long.class);
    }
    public void setRecommendedItemList(List<Long> itemIds) {
        this.recommendedItems = JSON.toJSONString(itemIds);
    }
}